package com.blood.core.enums;

/**
 * @author daoren
 * @date 2021/3/3 10:30
 * @description 角色权限
 */
public enum AbnormalEnum {
    NOT(1, "无"),
    UC(2, "宫缩过强"),
    OTHER(3, "其他"),
    ;

    private Integer value;
    private String name;

    AbnormalEnum(Integer value, String name) {
        this.name = name;
        this.value = value;
    }

    public Integer getValue() {
        return this.value;
    }

    public String getName() {
        return this.name;
    }

    public static AbnormalEnum find(Integer value) {
        AbnormalEnum[] var1 = values();
        int var2 = var1.length;
        for (int var3 = 0; var3 < var2; ++var3) {
            AbnormalEnum status = var1[var3];
            if (status.value.equals(value)) {
                return status;
            }
        }
        return OTHER;
    }
}
